package org.inh.ld20.dangerousbrother.screen;

import java.awt.Graphics;
import org.inh.ld20.dangerousbrother.Art;
import org.inh.ld20.dangerousbrother.Input;

public class TitleScreen extends Screen {

	
	@Override
	public void tick(Input input) {
		if(input.buttons[Input.ENTER] && !input.oldButtons[Input.ENTER]) {
			input.releaseAllKeys();
			setScreen(new GameScreen());
		}
	}
	
	@Override
	public void render(Graphics g) {
		g.drawImage(Art.titleScreen, 
				0, 0, Art.titleScreen.getWidth(), Art.titleScreen.getHeight(), null);
	}
	
}
